<?php
session_start(); 
if ($imgName = $_GET['imgName']) {
	foreach($_SESSION['img'] as $k=>$v){
		if($imgName == $v)
			unset($_SESSION['img'][$k]);
	}
	unlink($imgName);

}